a=input()
b=a.split()
number=' '
for i in b:
    if i=='zero':
        number+='0'
    if i=='one':
        number+='1'
    if i=='two':
        number+='2'
    if i=='three':
        number+='3'
    if i=='four':
        number+='4'
    if i=='five':
        number+='5'
    if i=='six':
        number+='6'
    if i=='seven':
        number+='7'
    if i=='eight':
        number+='8'
    if i=='nine':
        number+='9'
if len(b)==3:
    print(number)
else:
    print("Wrong input")
